
import 'package:json_annotation/json_annotation.dart';

part 'home_headimageModel.g.dart';
@JsonSerializable()
class homeHeadImageModel {

  late final int? id;
  late final int? locationId;
  late final String? title;
  late final int? pvCnt;
  late final String? coverImage;
  late final int? publishTime;

  homeHeadImageModel({
    this.id,
    this.locationId,
    this.title,
    this.pvCnt,
    this.coverImage,
    this.publishTime,
  });
  //  字典转模型
  factory homeHeadImageModel.fromJson(Map<String, dynamic> json) => _$homeHeadImageModelFromJson(json);
  // 模型转字典
  Map<String, dynamic> toJson() => _$homeHeadImageModelToJson(this);
}